#include <stdio.h>
//位运算符
int main() {
    short a;
    scanf("%d",&a);
    printf("%2d\n",a<<1);
    printf("%2d\n",a>>1);

    return 0;
}

